import request from '@/utils/request'

//获取个性化推荐数据
export function personalizedApi(){
    return request({
        url: '/recommend/personalized',
        method: 'get'
    })
}
//获取文化历史推荐数据
export function historicalApi(){
    return request({
        url: '/recommend/historical',
        method: 'get'
    })
}

//知识图谱数据
export function knowledgeGraphApi(goodsId){
    return request({
        url: `/recommend/knowledge-graph/${goodsId}`,
        method: 'get'
    })
}

//清空neo4j
export function cleanNeo4jApi(secretKey){
    return request({
        url: '/common/clear-neo4j',
        method: 'post',
        data: {secretKey}
    })
}